class useStrBuf{
 public static void main(String argv[]){
   StringBuffer str;
   str=new StringBuffer();
   System.out.println("capacity is : "+str.capacity() +" length is: "+str.length()); 
   str=new StringBuffer(80);
   System.out.println("capacity is : "+str.capacity() +" length is: "+str.length()); 
   str=new StringBuffer("Hello");
   System.out.println("capacity is : "+str.capacity() +" length is: "+str.length()); 
  }
}

